home *** CD-ROM | disk | FTP | other *** search
- on ScrollText dir
- global gRsrcPath, gIndexText, gLineP
- case dir of
- "U":
- set dir to -1
- "D":
- set dir to 1
- end case
- set K to the number of lines in gIndexText
- if K > 18 then
- set gLineP to gLineP + dir
- if gLineP < 1 then
- set gLineP to 1
- set the visible of sprite 5 to 0
- set the visible of sprite 6 to 1
- exit
- else
- if gLineP > (K - 17) then
- set gLineP to K - 17
- set the visible of sprite 5 to 1
- set the visible of sprite 6 to 0
- exit
- end if
- end if
- set max to gLineP + 17
- set txt to EMPTY
- repeat with n = gLineP to max
- set txt to txt & line n of gIndexText
- if n < max then
- set txt to txt & RETURN
- end if
- end repeat
- set the text of field "SavedGamesField" to txt
- if gLineP > 1 then
- set the visible of sprite 5 to 1
- end if
- if gLineP < (K - 17) then
- set the visible of sprite 6 to 1
- end if
- end if
- end
-